package HeSuanServer.mapper;

import HeSuanServer.POJO.EmpSearch;
import HeSuanServer.POJO.Employee;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
 * @描述:
 * @author: LH
 * @date: 2022/12/6
 */
@Mapper
public interface EmpMapper {

    List<Employee> findAll();

    Employee getById(Integer id);

    void editById(Employee emp);

    void add(Employee emp);

    void del(Integer id);

    List<Employee> getByName(String name);

    List<Employee> likeByName(String name);
    int insertBatch(List<Employee> list);

    int count(EmpSearch search);

    void delAll();

    List<Map> Search(EmpSearch search);

    List<Employee> byPage(EmpSearch search);
}
